/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sandbox.org.wads.lib.xpdl.elements;

import sandbox.org.wads.lib.xpdl.WADSXPDLElement;

/**
 *
 * @author Nattasan W.
 */
public class PackageHeader extends WADSXPDLElement {
  private CostUnit CostUnit;
  private Created Created ;
  private Description Description;
  private Documentation Documentation;
  private PriorityUnit PriorityUnit;
  private Vendor Vendor;
  private XPDLVersion XPDLVersion;
  
  public PackageHeader(sandbox.org.wads.lib.xpdl.elements.Package parent) {
    super(parent, PackageHeader.class.getSimpleName(), true);
    setSequence(0);
  }

  public String getCostUnit() {
    return CostUnit.getValue();
  }

  public String getCreated() {
    return Created.getValue();
  }

  public String getDescription() {
    return Description.getValue();
  }

  public String getDocumentation() {
    return Documentation.getValue();
  }

  public String getPriorityUnit() {
    return PriorityUnit.getValue();
  }

  public String getVendor() {
    return Vendor.getValue();
  }

  public String getXPDLVersion() {
    return XPDLVersion.getValue();
  }

  public void setCostUnit(String CostUnit) {
    this.CostUnit.setValue(CostUnit);
  }

  public void setCreated(String Created) {
    this.Created.setValue(Created);
  }

  public void setDescription(String Description) {
    this.Description.setValue(Description);
  }

  public void setDocumentation(String Documentation) {
    this.Documentation.setValue(Documentation);
  }

  public void setPriorityUnit(String PriorityUnit) {
    this.PriorityUnit.setValue(PriorityUnit);
  }

  public void setVendor(String Vendor) {
    this.Vendor.setValue(Vendor);
  }

  public void setXPDLVersion(String XPDLVersion) {
    this.XPDLVersion.setValue(XPDLVersion);
  }
  
//  public void createPackageHeaderChildren() {
//    if(!CostUnit.equals("")) {
//      this.getElement().appendChild(getXPDLDocument().createElement("CostUnit").appendChild(getXPDLDocument().createTextNode(CostUnit)));
//    }
//    if(!Created.equals("")) {
//      this.getElement().appendChild(getXPDLDocument().createElement("Created").appendChild(getXPDLDocument().createTextNode(Created)));
//    }
//    if(!Description.equals("")) {
//      this.getElement().appendChild(getXPDLDocument().createElement("Description").appendChild(getXPDLDocument().createTextNode(Description)));
//    }
//    if(!Documentation.equals("")) {
//      this.getElement().appendChild(getXPDLDocument().createElement("Documentation").appendChild(getXPDLDocument().createTextNode(Documentation)));
//    }
//    if(!PriorityUnit.equals("")) {
//      this.getElement().appendChild(getXPDLDocument().createElement("PriorityUnit").appendChild(getXPDLDocument().createTextNode(PriorityUnit)));
//    }
//    if(!Vendor.equals("")) {
//      this.getElement().appendChild(getXPDLDocument().createElement("Vendor").appendChild(getXPDLDocument().createTextNode(Vendor)));
//    }
//    if(!XPDLVersion.equals("")) {
//      this.getElement().appendChild(getXPDLDocument().createElement("XPDLVersion").appendChild(getXPDLDocument().createTextNode(XPDLVersion)));
//    }
//  }

}
